package com.yxw.live_vod_boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yxw.live_vod_boot.dto.BalanceDetailQueryDTO;
import com.yxw.live_vod_boot.entity.YxBalanceDetailEntity;
import com.yxw.live_vod_boot.vo.BalanceDetailVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xiexuxin
 * @date 2024-01-03
 */
@Repository
public interface BalanceDetailMapper extends BaseMapper<YxBalanceDetailEntity> {

    String[] BALANCE_DETAIL = {"订单完成", "提现"};

    /**
     * 获取余额明细列表
     * @param page
     * @param dto
     * @return
     */
    List<BalanceDetailVO> getBalanceDetailList(Page<BalanceDetailVO> page, @Param("dto") BalanceDetailQueryDTO dto);
}
